

// https://www.perplexity.ai/  点击复制
export function PerplexityAi() {
  setTimeout(() => {
    const doc = document.documentElement;
    doc.addEventListener('click', (e) => {
      const classNamesToCheck = ['whitespace-pre-line', 'break-words', '[word-break:break-word]', 'default'];

      if (classNamesToCheck.every(className => e.target.classList.contains(className))) {
        // 获取元素内部的文本内容
        const elementText = e.target.textContent;
        console.log('Element Text Content:', elementText);
        copyToClipboard(elementText);
        CopySuccessTips();
      }
    });
  }, 300);
}